package creatorMode.abstractFactory;

public class run {

    public static void main(String[] args) {
        brand lining = brand.LINING;
        brand nike = brand.NIKE;
        abstractFactory liNingFactory = clothingDom.factoryMaker.getFactory(lining);
        System.out.println("==============");
        pants pants = liNingFactory.createPants();
        shirt shirt = liNingFactory.createShirt();
        shoes shoes = liNingFactory.createShoes();
        System.out.println(pants.getPantsDescription());
        System.out.println(shirt.getShirtDescription());
        System.out.println(shoes.getShoesDescription());
        System.out.println("==============");
        abstractFactory nikeFactory = clothingDom.factoryMaker.getFactory(nike);
        shoes shoes1 = nikeFactory.createShoes();
        shirt shirt1 = nikeFactory.createShirt();
        pants pants1 = nikeFactory.createPants();
        System.out.println(pants1.getPantsDescription());
        System.out.println(shirt1.getShirtDescription());
        System.out.println(shoes1.getShoesDescription());
    }
}
